<?php

namespace app\common\validate\user;

use think\Validate;

//收藏帖子验证器
class Collect extends Validate
{
    //验证规则
    protected $rule = [
        'userid' => 'require', //必填
        'postid' => 'require', //必填
    ];

    //消息提醒
    protected $message = [
        'userid.require' => '用户信息未知',
        'postid.require' => '帖子信息未知',
    ];

    //验证场景
    protected $scene = [];
}
